package com.cpz.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cpz.mybatisplus.entity.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface UserMapper extends BaseMapper<User> {

    int save(User user);

    int saveBatch(@Param("users") List<User>users);

    @Delete("truncate table user")
    void truncate();
}
